package ProxyFactorryBean;


import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;


public class myAspect implements MethodInterceptor {

    public Object invoke(MethodInvocation mi) throws Throwable {
        before();
        Object result = mi.proceed();
        after();
        return result;
    }

    private void before() {
        System.out.println("Before");
    }

    private void after() {
        System.out.println("After");
    }



}
